package com.github.satant.job.biz.impl;

import com.github.satant.job.biz.StCompanyBiz;
import com.github.satant.job.common.biz.impl.BaseBizImpl;
import com.github.satant.job.entity.StCompany;
import com.github.satant.job.mapper.StCompanyMapper;
import java.time.LocalDateTime;
import org.springframework.stereotype.Service;

/**
 * 公司表
 *
 * @author dear_satant
 * @email 446269825@qq.com
 * @date 2018-06-26 21:34:06
 */
@Service
public class StCompanyBizImpl extends BaseBizImpl<StCompanyMapper,StCompany> implements StCompanyBiz {


    @Override
    public StCompany insertSelective(StCompany entity) {
        setDefault(entity);
        return super.insertSelective(entity);
    }



    public void setDefault(StCompany entity){
        entity.setCreateTime(LocalDateTime.now());
    }
}